import type { ReqType } from "@src/dataFormatConversion/type"
import { DataSourceTypeEnum } from "@src/globalData/enum"

/** 现货市场获取数据的参数 */
export interface SpotMarketReqFnParams {headers:HeadersInit, reqType?:ReqType, pdate:string, unitid?: string, calculateSaveData?:boolean}

/** 创建一个现货市场获取数据的参数 */
export interface CreateOneSpotMarketReqParams extends SpotMarketReqFnParams {
  key: DataSourceTypeEnum
}

/** 一个现货市场获取数据的函数 */
export type SpotMarketReqFn = {(params:SpotMarketReqFnParams):Promise<any>}